package com.guigu.gulicommon.constant.enumes.res;

import com.guigu.gulicommon.api.BaseResCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 基础响应码枚举
 */
@Getter
@AllArgsConstructor
public enum CommonResCode implements BaseResCode {
    SUCCESS(200, "操作成功"),
    FAIL(400, "操作失败"),
    UNAUTHORIZED(401, "未授权"),
    FORBIDDEN(403, "禁止该操作"),
    NOT_FOUND(404,"未找到资源"),
    ;

    private final Integer code;
    private final String msg;
}
